<template>
  <div>
    <list-vue @willEdit="willEdit"></list-vue>
    <form-vue :info="info" ref="form"></form-vue>
  </div>
</template>
<script>
import listVue from "./components/list.vue";
import formVue from "./components/form.vue";
import { mapGetters, mapActions } from "vuex";
export default {
  components: {
    listVue,
    formVue,
  },
  props: [],
  data() {
    return {
        info:{
            isshow:false,
        }
    };
  },
  computed: {
    ...mapGetters({}),
  },
  mounted() {},
  methods: {
    ...mapActions({}),
    willEdit(uid){
        this.info.isshow=true;
        this.$refs.form.getone(uid)
    }
  },
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
</style>